#!/bin/bash - 
#===============================================================================
#
#          FILE: groupsend_plot.sh
# 
#         USAGE: ./groupsend_plot.sh 
# 
#   DESCRIPTION: 
# 
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: YOUR NAME (), 
#  ORGANIZATION: 
#       CREATED: 03.05.2013 12.26.46 EEST
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error
echo 'set terminal epslatex color colortext
  set output "groupsend_plot.tex"
  set ylabel "Network total speed (Mb/s)"
  set xlabel "Time(s)"
  plot "data/bwm_on_ara_for_gnuplot_doubles_removed" u ($1-1371556084):(($5*8)/(1024*1024)) title "Total"  w l , \
    "data/bwm_on_ara_for_gnuplot_doubles_removed" u ($1-1371556084):(($3*8)/(1024*1024)) title "Out"  w l , \
    "data/bwm_on_ara_for_gnuplot_doubles_removed" u ($1-1371556084):(($4*8)/(1024*1024)) title "In"  w l ' | gnuplot -persist

